package net.phoenix.repository.nodetype;

import javax.jcr.Value;
import javax.jcr.nodetype.PropertyDefinition;


/**
 * @author lixf
 *
 */
public abstract class GeneralPropertyDefinition extends XMLItemDefinition implements PropertyDefinition {
	protected GeneralNodeTypeManager manager;
	protected GeneralNodeType nodeType;

	public GeneralPropertyDefinition(GeneralNodeTypeManager manager, GeneralNodeType nodeType) {
		this.manager = manager;
		this.nodeType = nodeType;
	}

	
	public Value getDefaultValue() {
		Value[] values = this.getDefaultValues();
		if ((values == null) || (values.length == 0))
			return null;
		return values[0];
	}



}
